package com.jsong.linuo.oop.test3;

import java.util.Scanner;

public class Client {
    public static void main(String[] args) {
        System.out.println("请问您要连接哪一个数据库?(1.Mysql 2.Oracle)");

        Scanner sc = new Scanner(System.in);

        int n = sc.nextInt();
        IDAO dao;
        if (n == 1) {
            dao = new MysqlDao();
        } else {
            dao = new OracleDao();
        }

        dao.connect();
        dao.add();
        dao.del();
        dao.sel();
        dao.upd();

    }
}
